import { NgModule } from '@angular/core';
import { DisseminationManagementComponent } from './dissemination-management.component';
import { Routes, RouterModule } from '@angular/router';
import { ShareModule } from 'app/shared/ShareModule';
import { PublicComponentModule } from 'app/public';
import { NgZorroAntdModule } from 'ng-zorro-antd';
import { AddVmsComponent } from './message-library/add-vms/add-vms.component';
import { AddVmsMessageComponent } from './message-library/add-vms/add-vms-message/add-vms-message.component';
import { PictogramComponent } from './message-library/add-vms/add-vms-message/pictogram/pictogram.component';
import { TemplateComponent } from './message-library/add-vms/add-vms-message/template/template.component';
import { VmsLibraryComponent } from './message-library/add-vms/vms-library/vms-library.component';
import { VmsMessageInfoComponent } from './message-library/add-vms/vms-message-info/vms-message-info.component';
import { MessageCategoryComponent } from './message-category/message-category.component';
import { GraphicComponent } from './graphic/graphic.component';
import { MessageLibraryComponent } from './message-library/message-library.component';
import { MessageLibraryListComponent } from './message-library/message-library-list/message-library-list.component';
import { MessageTemplateComponent } from './message-template/message-template.component';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { AddVMSService } from './message-library/add-vms/add-vms.service';
import { DragDropModule } from '@angular/cdk/drag-drop';
import { AddGraphicComponent } from './graphic/add-graphic/add-graphic.component';
import { NzIconModule } from 'ng-zorro-antd';
const routes: Routes = [
    {
        path: '',
        component: DisseminationManagementComponent,
        children: [
            { path: '', redirectTo: 'message-library', pathMatch: 'full' },
            { path: 'message-library', component: MessageLibraryComponent },
            { path: 'message-category', component: MessageCategoryComponent },
            { path: 'graphic', component: GraphicComponent },
            { path: 'message-template', component: MessageTemplateComponent }
        ]
    }
];

const COMPONENT = [
    DisseminationManagementComponent,
    AddVmsMessageComponent,
    VmsLibraryComponent,
    VmsMessageInfoComponent,
    PictogramComponent,
    TemplateComponent,
    AddVmsComponent,
    GraphicComponent,
    MessageCategoryComponent,
    MessageLibraryComponent,
    MessageTemplateComponent,
    MessageLibraryListComponent,
    AddGraphicComponent
];

@NgModule({
    imports: [
        ShareModule,
        DragDropModule,
        PublicComponentModule,
        RouterModule.forChild(routes),
        NgZorroAntdModule,
        FormsModule,
        ReactiveFormsModule,
        NzIconModule
    ],
    declarations: COMPONENT,
    providers: [AddVMSService]
})
export class DisseminationManagementModule {}
